import cv2
img=cv2.imread('yihun.jpg',cv2.IMREAD_GRAYSCALE)
result=cv2.bitwise_not(img)
cv2.imshow('c1',img)
cv2.imshow('c2',result)
cv2.waitKey()
cv2.destroyAllWindows()
